home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / language / embedded / develop / symcoff.arc / PLOHSEEK.C < prev    next >
Text File  |  1988-11-07  |  2KB  |  34 lines

  1. static char *sccsid[]={"@(#)pldohseek.c 2.1",
  2. "Copyright 1985 by Motorola Inc."};
  3. #include <stdio.h>
  4. #ifdef PCPORT
  5. #include "/pld/src/hd/pcport.h"      /*PC-PORT*/
  6. #endif
  7. #include "../hd/pfilehdr.h"
  8. #include "../hd/pldfcn.h"
  9.  
  10. #include "../hd/pldf_dcl.h"        /*PC-PORT*/
  11. /****************** PLDOHSEEK ******************************************gs##*/
  12. /*                                                                        ##*/
  13. /*                                                                        ##*/
  14. /* Written by:  Michael Greenberg - MIL                                   ##*/
  15. /*                                                                        ##*/
  16. /* ACTION:                                                                ##*/
  17. /*      Seek to the optional file header of a common object file.         ##*/
  18. /*                                                                        ##*/
  19. /* SYNOPSIS:                                                              ##*/
  20.       int pldohseek(ldptr)                                              /*##*/
  21. /*    --------------------                                                ##*/
  22. register LDFILE *ldptr;                                                 /*##*/
  23. /*                                                                        ##*/
  24. /*************************************************************************##*/
  25. {
  26.         if(HEADER(ldptr).f_opthdr == 0)
  27.                 return(FAILURE);
  28.         if(fseek(IOPTR(ldptr), OFFSET(ldptr) + FILHSZ, 0) != 0)
  29.                 return(FAILURE);
  30.  
  31.         return(SUCCESS);
  32. }
  33. /* Copyright 1985 by Motorola Inc. */
  34.